<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "bus_supplie_finance".
 *
 * @property string $finance_id
 * @property string $finance_type
 * @property string $create_date
 * @property string $finance_money
 * @property string $finance_give_money
 * @property string $finance_balance
 * @property string $finance_give_balance
 * @property string $finance_remark
 * @property string $shop_id
 * @property string $boss_id
 * @property string $supplier_id
 */
class BusSupplieFinance extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'bus_supplie_finance';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['finance_type', 'finance_money', 'finance_give_money', 'finance_balance', 'finance_give_balance', 'finance_remark', 'shop_id', 'boss_id', 'supplier_id'], 'required'],
            [['create_date'], 'safe'],
            [['finance_money', 'finance_give_money', 'finance_balance', 'finance_give_balance'], 'number'],
            [['shop_id', 'boss_id', 'supplier_id'], 'integer'],
            [['finance_type', 'finance_remark'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'finance_id' => 'Finance ID',
            'finance_type' => 'Finance Type',
            'create_date' => 'Create Date',
            'finance_money' => 'Finance Money',
            'finance_give_money' => 'Finance Give Money',
            'finance_balance' => 'Finance Balance',
            'finance_give_balance' => 'Finance Give Balance',
            'finance_remark' => 'Finance Remark',
            'shop_id' => 'Shop ID',
            'boss_id' => 'Boss ID',
            'supplier_id' => 'Supplier ID',
        ];
    }
}
